﻿# -*- coding: utf-8 -*-

#Импортирование модулей для магазинов

from dns import DNSShop

from price import *

shop = DNSShop()
shop.get_list()

"""
file = open("c:\\temp\\price.txt","w")
for k in shop.List.keys():
    lst = shop.List[k]
    for i in lst:
        u = i.Description +  ":" + i.DetailsURL + " || " + str(i.Price) +  "\n"
        file.write(u.encode('cp1251'))
file.close()
"""

r = shop.find("Процессор")
for e in r
    print(e.DetailsURL)